import sys
from PyQt5.QtWidgets import QApplication
from ui.project_manager import ProjectManager

def main():
    app = QApplication(sys.argv)
    # 全局样式
    try:
        with open("assets/style.qss", "r", encoding="utf-8") as f:
            app.setStyleSheet(f.read())
    except Exception:
        pass

    win = ProjectManager()
    win.show()
    sys.exit(app.exec_())

if __name__ == "__main__":
    main()
